package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "order_quotation_details")
@TableName("order_quotation_details")
@ApiModel(value = "报价详情表")
public class QuotationDetails extends FreightBaseEntity {

    @ApiModelProperty(value = "报价记录Id")
    private Long quotationRecordId;

    @ApiModelProperty(value = "运费单价")
    private BigDecimal freightUnitPrice;

    @ApiModelProperty(value = "运费总价")
    private BigDecimal freightTotalPrice;

    @ApiModelProperty(value = "承运重量")
    private Double transGoodWeight;

    @ApiModelProperty(value = "体积")
    private Double volume =  0.0;

    @ApiModelProperty(value = "件数")
    private Double piece =  0.0;

    @ApiModelProperty(value = "留言")
    private String remarks;

    @ApiModelProperty(value = "装货时间")
    private String loadingTime;

}
